<template>
	<div class="admin-index">
		<el-row>
			<el-col :span="3" class="navigation">
				<el-menu
					
					router
					default-active="/admin/subjects"
					class="el-menu-vertical-demo"
					>
					<el-menu-item index="/admin/subjects">
						<i class="el-icon-s-grid"></i>
						<span>面试题目维护</span>
					</el-menu-item>
					<el-menu-item index="/admin/users">
						<i class="el-icon-user-solid"></i>
						<span slot="title">用户管理</span>
					</el-menu-item>
					<el-menu-item index="/">
						<i class="el-icon-s-home"></i>
						<span slot="title">首页</span>
					</el-menu-item>
				</el-menu>
			</el-col>
			<el-col :span="21">
				<router-view></router-view>
			</el-col>
		</el-row>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		created() {
			this.$router.push({
				path: '/admin/subjects'
			})
		},
		watch:{
		    $route(to,from){
				// console.log(from.path);//从哪来
				// console.log(to.path);//到哪去
				
		    }
		}
	}
</script>

<style lang="scss" scoped>
	.admin-index {
		height: 100vh;
		background-color: white;
		.navigation {
			height: 100vh;
		}
	}
</style>